package lab02.test35;

/**
 * 在基本工资的基础上每月还有销售提成。
 * Created by AIR on 2017/11/13.
 */
public class Salesman extends Employee{
    double baseSalary;
    int quantity;
    double commision;

    public Salesman(String name,double baseSalary,int quantity,double commision) {
        super(name);
        this.baseSalary=baseSalary;
        this.quantity=quantity;
this.commision=commision;
    }


    @Override
    double computeSalary() {
    return baseSalary+quantity*commision;
    }
}
